import java.io.*;
import java.util.Arrays;

class main {
    public static void main(String[] args) throws IOException{
        FileInputStream fileInputStream = new FileInputStream(new File(args[0]));
        FileOutputStream fileOutputStream = new FileOutputStream(new File(args[0].toString() + "_"));
        byte[] buffer = new byte[5];
        int offset;
        while ( (offset = fileInputStream.read(buffer, 0, 5)) > 0){
            fileOutputStream.write(bytch(buffer), 0, offset);
        }
        fileInputStream.close();
        fileOutputStream.close();
    }

    private static byte[] bytch(byte[] b){
        if (b[4] == (byte)'7')
            b[4] = (byte)'8';
        return b;
    }
}